home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
64'er 1990 March
/
64er_Magazin_90-03_1990_Markt__Technik_de_Side_A.d64
/
swap in .scr
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
905b
|
47 lines
10 sys9
20 .opt oo
30 *=$1000
40 z = $b0
50 sinus = $1100
90 ;---------------- irq-initialisieren
100 sei
105 lda #0:sta $dc0e
110 lda #$f1:sta $d01a
120 lda #0:sta $d019
130 lda #$1b:sta $d011
140 lda #$1e:sta $d012
150 lda #0:sta $3fff
160 ldx #<irq
170 ldy #>irq
180 stx $314
190 sty $315
195 lda #0:sta z+1
196 lda $1100:sta z
200 cli
210 rts
220 ;----------------- neuer raster-irq
300 irq ldx z
310 zmal lda $d012
320 zend cmp $d012
330 beq zend
340 and #7:ora #$18:sta $d011
350 dex:bne zmal
360 jsr m1
400 lda #1:sta $d019
410 jmp $ea31
420 ;-------------- aendern der hoehe z
500 m1 inc z+1:ldy z+1
510 cpy #255
520 bne m2
530 lda #$a5:sta m1
535 ;----------- warten auf space-taste
540 lda $dc01:cmp #239:bne m2
550 lda #$c6:sta m1
560 m2 cpy #0:bne m3
564 ;--------- eventuell naechste seite
565 inc $d020
570 lda #$e6:sta m1
580 ;------------ neuer wert fuer hoehe
590 m3 lda sinus,y:sta z
600 rts